.page-box {
  //background: #f4f7fe;
  background: linear-gradient(180deg, #f3e7e9 0%, #e3eeff 100%);
  //height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;

  &-content {
    padding-top: 10px;
    flex: 1;
    overflow: auto;
  }

  &-footer {
    //padding: 10px;
    min-height: 80px;

    .search-box {
      box-sizing: border-box;
      font-size: 14px;
      display: flex;
      flex-direction: column;
      //background: #fff;
      border: 1px solid transparent;
      border-radius: 8px;
      box-shadow: 0 16px 20px 0 rgba(174, 167, 223, .2);
      //margin-bottom: -2px;
      margin-left: 0;
      margin-right: 0;
      min-height: 50px;
      overflow: hidden;
      position: relative;
      padding-bottom: 20px;

      .search-header {
        display: flex;
        align-items: center;
        //border-bottom: 1px solid #e5e5e5;
        padding: 10px 30px;

        .tag-item {
          margin-right: 10px;
          color: #aaa;
          border: 1px solid rgba(0, 0, 0, .12);
          border-radius: 12px;
          padding: 5px 10px;
          cursor: pointer;
        }
      }

      .search-input {
        margin: 10px 30px;
        position: relative;
        min-height: 40px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        background-color: #fff;
        height: 100%;
        border-radius: 20px;
        padding: 0 10px;

        .textarea-wrap {
          width: 100%;
          overflow: auto;
        }

        .search-content {
          visibility: hidden;
          /** 避免初始化时容器没有高度 */
          padding: 8px 0;
          min-height: 22px;
        }

        .input {
          width: calc(100% - 50px);
          //height: 100%;
          border: none;
          outline: none;
          //min-height: 40px;
          color: #625b88;
          //position: absolute;
          top: 0;
          /** 必须设置为 content-box !!! */
          box-sizing: content-box;
          /** 设置字体尺寸与行高继承自父元素 */
          font-size: inherit;
          line-height: inherit;
          /* 去掉右下角的调整大小的标志 */
          resize: none;
          height: 24px;
          min-height: 24px;
          max-height: 50px;
          overflow-y: auto;
          //padding: 10px;
          //border-radius: 20px;
          &::placeholder {
            line-height: normal;
          }

        }
      }

      //height: 50px;

      .search-button {
        width: 30px;
        height: 30px;
        background-size: 30px;
        background-image: url("@/assets/images/send.png");
        background-repeat: no-repeat;
        cursor: pointer;
        //position: absolute;
        right: 10px;
        bottom: 10px;
        transition: all .16s;
        color: #625b88;

      }

      .search-button-disabled {
        cursor: default;
        pointer-events: none; // 禁止点击事件
      }
    }

    .focused {
      //border: 1px solid #5653f2;
    }

    .active {
      background: #639df2 !important;
      color: #fff !important;
    }
  }

  .message-list {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    //align-items: center;

    ul, li, p {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    &-box {
      margin: 0 10px !important;

      .message-item {
        display: flex;
        margin-bottom: 20px;

        &-avatar {
          margin-right: 10px;

          img {
            width: 30px;
            height: 30px;
            color: #ccc;
            border-radius: 50%;
          }
        }
      }

      .message-AI {
        .message-item-content {
          width: 80%;
          background-color: #fff;
          padding: 10px;
          border-radius: 5px;
          color: #333;
        }
      }

      .message-person {
        display: flex;
        flex-direction: row-reverse;
        //align-items: center;

        .message-item-avatar {
          margin-left: 10px;
        }
      }
    }

    .message-item-content-text {
      padding: 10px;
      border-radius: 5px;
      background-color: #c9e7ff;
    }

    .message-item-content-tip {
      .title {
        padding-top: 10px;
      }

      .tip {
        //font-size: 14px;
      }

      .tag-list {
        margin-left: 24px;
        padding: 10px 10px 10px 0;
        cursor: pointer;
        list-style: disc;

        &-active {
          background-color: #e6f7ff;
        }

        &:hover {
          background-color: #F5F5F5;
          border-radius: 5px;
        }

      }
    }

    :deep(.github-markdown-body) {
      padding: 0 !important;

      p {
        margin: 0 !important;
      }
    }
  }
}

/* 滚动条整体样式 */
::-webkit-scrollbar {
  width: 5px; /* 滚动条宽度 */
  height: 10px; /* 垂直滚动条高度，水平滚动条不需要 */
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
  //background: #888; /* 滑块颜色 */
  //border-radius: 10px; /* 滑块圆角 */
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
  //background: #f1f1f1; /* 轨道颜色 */
  //border-radius: 10px; /* 轨道圆角 */
}

/* 当鼠标悬停在滑块上时 */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* 鼠标悬停时的滑块颜色 */
}

.loading,
.loading > div {
  position: relative;
  box-sizing: border-box;
}

.loading {
  margin-left: 50px;
  display: block;
  font-size: 0;
  color: #5653f2;
}

.loading.la-dark {
  color: #5653f2;
}

.loading > div {
  display: inline-block;
  float: none;
  background-color: currentColor;
  border: 0 solid currentColor;
}

.loading {
  width: 120px;
  height: 10px;
  font-size: 0;
  text-align: center;
}

.loading > div {
  display: inline-block;
  width: 10px;
  height: 10px;
  white-space: nowrap;
  border-radius: 100%;
  animation: ball-elastic-dots-anim 1s infinite;
}

@keyframes ball-elastic-dots-anim {
  0%,
  100% {
    margin: 0;
    transform: scale(1);
  }

  50% {
    margin: 0 5%;
    transform: scale(0.65);
  }
}
